package com.wj.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wj.common.to.mq.SeckillOrderTo;
import com.wj.common.utils.PageUtils;
import com.wj.gulimall.order.entity.OrderEntity;
import com.wj.gulimall.order.vo.OrderConfirmVo;
import com.wj.gulimall.order.vo.OrderSubmitVo;
import com.wj.gulimall.order.vo.PayVo;
import com.wj.gulimall.order.vo.SubmitOrderResponseVo;

import java.util.Map;

/**
 * 订单
 *
 * @author wenjie
 * @email wenjie@gmail.com
 * @date 2020-10-10 23:00:28
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PayVo getOrderPay(String orderSn);

    void createSeckillOrder(SeckillOrderTo to);
}

